package com.tzy.rpc.transport;/**
 * @description:
 * @Author HP
 * @create 2022/3/14 19:34
 */

import com.tzy.rpc.serializer.CommonSerializer;

/**
 * @author HP
 * @create 2022-03-14 19:34
 * @desc server抽象
 **/
public interface RpcServer {
//    void start(int port);
    void start();
    void setSerializer(CommonSerializer serializer);
    /**
     * @description 向Nacos注册服务
     * @param: [service, serviceClass]
     * @return [void]
     * @date [2021-03-13 15:56]
     */
    <T> void publishService(T service, String serviceName);
}
